package com.jt.demo10.mapper;

import com.jt.demo10.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//@Component
@Repository //Spring管理 key:userMapperImpl value:反射机制
public class UserMapperImpl implements UserMapper{

    @Override
    public void addUser(User user) {

        System.out.println("完成用户的入库操作:"+user.getName());
    }
}
